<div class="paylog">

<h3><{"Select Book"|msg}></h3>

<div class="right">
<a href="<{url controller="edit_book"}>"><{"Create book"|msg}></a>
</div>

<table class="outer">

<tr>
<th><{"ID"|msg}></th>
<th><{"Book Name"|msg}></th>
<th><{"Operate"|msg}></th>
</tr>

<{foreach from=$paylog.books item="book"}>
<tr class="<{cycle values="odd,even"}>">
<td><{$book.id}></td>
<td><a href="<{url controller="calender" book_id=$book.id}>"><{$book.name}></a></td>
<td>
<a href="<{url controller="edit_book" id=$book.id}>"><{"Edit"|msg}></a>
<a href="<{url controller="delete_book" id=$book.id}>"><{"Delete"|msg}></a>
<a href="<{url controller="entry" book_id=$book.id}>"><{"New Entry"|msg}></a>
</td>
</tr>
<{/foreach}>

</table>

</div>